package top.xunfong.common.core.constant.redisKey;

public class RedisKeyConstants {
    public static final String BREAKPOINT_KEY_PREFIX = "file:breakpoint:";

    public static final String BREAKPOINT_METADATA_KEY = "file:breakpoint:metadata:";

    public static final String BREAKPOINT_CHUNK_KEY = "file:breakpoint:chunk:";

    public static final String BREAKPOINT_LOCK_KEY = "lock:file:breakpoint";

    public static final String BREAKPOINT_MERGE_LOCK_KEY = "lock:file:breakpoint:merge";

    public static final String BREAKPOINT_DELETE_LOCK_KEY = "lock:file:breakpoint:delete:";

    public static final String BREAKPOINT_CHUNK_LOCK_KEY = "lock:file:breakpoint:chunk:";

    /**
     * redis锁值
     */
    public static final String REDIS_LOCK_VALUE = "lock";

    /**
     * 断点续传锁过期时间
     */
    public static final long BREAKPOINT_LOCK_TIME = 1000 * 10L;

    public static final String FLASH_SALE_KEY_ORDER_GRABBING = "flash:sale:order:grabbing:";

    public static final String FLASH_SALE_KEY_INVENTORY = "flash:sale:inventory:";

}
